package JitTest;

import commander.CLI;
import core.JitAdd;
import core.JitCommit;
import core.JitLogs;
import gitobject.Commit;
import org.junit.Test;

public class test6_JitLogs {
    @Test
    public void test() throws Exception {
        // 初始化仓库
        String[] sInit1 = {"jit","init","C:\\Users\\Alphamxy\\Desktop\\test"};
        CLI.jitInit(sInit1);

        // 第一次commit
        JitAdd.add("a.txt");
        JitCommit.commit("First Time");

        System.out.println("===============First Time Commit Logs================");
        JitLogs.printLogs();
        System.out.println("===============First Time Commit Logs================");

        // 第二次commit
        JitAdd.add("Text");
        JitCommit.commit("Second Time");

        System.out.println("===============Second Time Commit Logs================");
        JitLogs.printLogs();
        System.out.println("===============Second Time Commit Logs================");
    }
}
